﻿using Deepcode.Flux.Core.Systems.CMS;

/// <summary>
/// Summary description for ContentHelper
/// </summary>
public static class ContentHelper
{
	/// <summary>
	/// Gets the root menu.
	/// </summary>
	/// <returns></returns>
	public static ContentObject[] GetRootMenu()
	{
		ContentObject root = URLHelper.GetRoot();
		if (root == null) return null;

		return ContentQuery.GetForParentID(root.PK_ID);
	}
}
